"""
API路由模块
"""
from fastapi import APIRouter
from app.api.routes import overview, departure_retention, background_activity, anomaly_detection, upload

# 创建主路由
api_router = APIRouter()

# 注册子路由
api_router.include_router(overview.router, prefix="/overview", tags=["Overview"])
api_router.include_router(
    departure_retention.router, prefix="/departure-retention", tags=["Departure & Retention"]
)
api_router.include_router(
    background_activity.router, prefix="/background-activity", tags=["Background & Activity"]
)
api_router.include_router(
    anomaly_detection.router, prefix="/anomaly-detection", tags=["Anomaly Detection"]
)

# 注册文件上传路由
api_router.include_router(
    upload.router, prefix="/upload", tags=["Upload"]
)
